package com.wechat.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wechat.service.WechatService;
@Controller
@RequestMapping("/UserController")
public class UserController {
	@RequestMapping("/hello")
	public @ResponseBody String hello() throws Exception{
		WechatService ws=new WechatService();
		String accessToken = ws.getAccessToken();
		return accessToken;
	}
}
